#include "test/serv/server.h"
#include "rpc/poller.h"

#include "test/test_proto/echo.pb.h"
#include "test/serv/server.h"

namespace urpc {

void EchoServer::echo(::google::protobuf::RpcController* controller,
                      const ::urpc::EchoRequest* request,
                      ::urpc::EchoResponse* response,
                      ::google::protobuf::Closure* done) {
  LOG(INFO) << "echo request: " << request->DebugString();

  response->set_id(request->id());

  LOG(INFO) << "echo reply: " << response->DebugString();
}
}

